<?php

namespace App\Containers\AppSection\Accreditation\Actions;

use App\Containers\AppSection\Accreditation\Models\Accreditation;
use App\Containers\AppSection\Accreditation\Tasks\CheckAccreditationTask;
use App\Containers\AppSection\Accreditation\Tasks\FindAccreditationByIdTask;
use App\Containers\AppSection\Accreditation\Tasks\SendToAccreditationTask;
use App\Containers\AppSection\Accreditation\Tasks\UpdateAccreditationTask;
use App\Containers\AppSection\Accreditation\UI\API\Requests\SendToAccreditationRequest;
use App\Containers\AppSection\Log\Tasks\CreateLogTask;
use App\Containers\AppSection\Profile\Tasks\UpdateProfileTask;
use App\Ship\Parents\Actions\Action;

class SendToAccreditationAction extends Action
{
    public function run(SendToAccreditationRequest $request): Accreditation
    {
        return app(SendToAccreditationSubAction::class)->run($request->profile()->id);
    }
}
